import request from '@/utils/request'

// 查询热门景点列表
export function listAttractions(query) {
  return request({
    url: '/manage/apartment/attractions/list',
    method: 'get',
    params: query
  })
}

// 查询热门景点详细
export function getAttractions(attractionsId) {
  return request({
    url: '/manage/apartment/attractions/' + attractionsId,
    method: 'get'
  })
}

// 新增热门景点
export function addAttractions(data) {
  return request({
    url: '/manage/apartment/attractions',
    method: 'post',
    data: data
  })
}

// 修改热门景点
export function updateAttractions(data) {
  return request({
    url: '/manage/apartment/attractions',
    method: 'put',
    data: data
  })
}

// 删除热门景点
export function delAttractions(attractionsId) {
  return request({
    url: '/manage/apartment/attractions/' + attractionsId,
    method: 'delete'
  })
}
